import { Router } from "express";
import { AdminController } from "../controller/admin.controller";
import { AuthMiddleware } from "../middleware/auth.middleware";

const adminRouter = Router();
const adminController = new AdminController();
const authMiddleware = new AuthMiddleware();
adminRouter.get("/admin/stats", adminController.stats);

adminRouter.use(authMiddleware.authenticate);
export default adminRouter;
